import axios from '../../axios.js'
const parkings = {
    // 获取车位列表数据
    getParkinData(current, pageSize, value, input, state) {
        return axios({
            url: "/parkings/getParkinData",
            method: "post",
            data: {
                current,
                pageSize,
                value,
                input,
                state
            }
        });
    },
    addParking(data) {
        return axios({
            url: "/parkings/addParking",
            method: "post",
            data: data
        });
    },
    deleteParking(data) {
        return axios({
            url: "/parkings/deleteParking",
            method: "post",
            data: {
                _id: data,
            }
        });
    }

}
export default parkings